File facetSrc = new File("/mnt/sdcard/sakura/facets.txt");
File podSrc = new File("/mnt/sdcard/sakura/pods.txt");

String bloom[]=new String[5];
String bloomName;
int bloomI;
String flowerNames[]=new String[15];
int fCols;
int fRows;
int pCols;
int pRows;
String [][] facets;
String [][] pods;

void LoadFacets() {
  //results in 1-based array, not zero-based
  println("S:loadfacets");
  String buffer[] =loadStrings(facetSrc);
  fRows = buffer.length;
  String buffer2[]= split(buffer[0], "\t");
  fCols = buffer2.length;
  facets =new String[fRows][fCols];
  print("fRows: "+fRows);
  println("S: fCols: "+fCols);
  for (int j = 0; j < fRows; j++) {
    println(buffer[j]); 
    String entry[]= split(buffer[j], "\t");
    for (int i = 0; i < fCols; i++) {
      facets[j][i] = entry[i];
    }
  }
}

void LoadPods() {
  //results in 1-based array, not zero-based
  //notes are for converting back to a zero based array
  println("S:loadPods");
  String buffer[] =loadStrings(podSrc);
  pRows = buffer.length; //-1; use -1 to subtract spredsheet header
  String buffer2[]= split(buffer[0], "\t");
  pCols = buffer2.length;
  pods =new String[pRows][pCols];
  print("pRows: "+pRows);
  println("S: pCols: "+pCols);
  for (int j = 0; j < pRows; j++) {// set to keep column header
    println(buffer[j]); //add +1 when zero based array
    String entry[]= split(buffer[j], "\t"); //annd +1 to buffer[j] to subtract header
    for (int i = 0; i < pCols; i++) {
      pods[j][i] = entry[i];
    }
  }
}
